<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->

    <!-- 路径可能跟我不一样，需要修改 -->
    <script src="../js/vue.global.js"></script>


</head>

<body>

    <div id="app">
        <button @click="isShow = !isShow">修改isShow</button>

        <div v-if="isShow">
            使用v-if 展示数据
        </div>


        <div v-show="isShow">使用v-show 展示数据</div>



    </div>


    <script>


        Vue.createApp({
            data() {
                return {
                    isShow: true
                }
            }
        }).mount("#app")



    </script>




</body>

</html>